package com.niiwoo.civet.mobile.vo.request.databackflow;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * Created by lujing on 2017/12/2.
 */
@Setter
@Getter
@ToString
@ApiModel("通话记录数据回流")
public class TalkRecordRequestVO {

    @ApiModelProperty(value = "设备id", required = true)
    private String deviceId;
    @ApiModelProperty(value = "通话信息", required = true)
    private List<TalkRecord> callRecordsList;


    @Setter
    @Getter
    @ApiModel("通话信息")
    public static class TalkRecord{
        @ApiModelProperty(value = "手机号码", required = true)
        private String mobile;
        @ApiModelProperty(value = "时间-毫秒时间戳", required = true)
        private Long time;
        @ApiModelProperty(value = "通话时长-秒", required = true)
        private int duration;
        @ApiModelProperty(value = "主叫or被叫-1-主叫 2-被叫", required = true)
        private int sendOrReceive;
    }
}
